num_int = 123
num_flo = 1.23

num_new = num_int + num_flo

print("datatype of num_int:",type(num_int))
print("datatype of num_flo:",type(num_flo))

print("Value of num_new:",num_new)
print("datatype of num_new:",type(num_new))

num_int = 123
num_str = "456"

print("Data type of num_int:",type(num_int))
print("Data type of num_str:",type(num_str))

# print(num_int+num_str)


print(oct(16))# 八进制数
print(hex(16))# 十六进制数
print(ord('c'))# 将一个字符转换为它的整数值
print(chr(99))#将一个整数转换为一个字符
print(str(99))# 将对象 x 转换为字符串
print(repr(99))#将对象 x 转换为表达式字符串
print(complex(1,2))

a = 4
b = 10
c = 1

c = a + b
print("1 - c 的值为：", c)

c += a
print("2 - c 的值为：", c)

c *= a
print("3 - c 的值为：", c)

c /= a
print("4 - c 的值为：", c)

c = 2
c %= a
print("5 - c 的值为：", c)

c **= a
print("6 - c 的值为：", c)

c //= a
print("7 - c 的值为：", c)